gtkspinbutton: Remove motion notify handler
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 15 Sep 2017 13:05:40 +0000 (15:05 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 19 Sep 2017 16:40:50 +0000 (18:40 +0200)
It does nothing nowadays.

gtk/gtkspinbutton.c

index 5e4735d142392a6225a62a80fb20f04d5bf2dcda..07853124b1f122ceddb2493ebb05f7227eb94249 100644 (file)
@@ -270,8 +270,6 @@ static void gtk_spin_button_value_changed  (GtkAdjustment      *adjustment,
                                             GtkSpinButton      *spin_button);
 static gint gtk_spin_button_key_release    (GtkWidget          *widget,
                                             GdkEventKey        *event);
-static gint gtk_spin_button_motion_notify (GtkWidget      *widget,
-                                           GdkEventMotion *event);
 
 static void gtk_spin_button_activate       (GtkEntry           *entry,
                                             gpointer            user_data);
@@ -322,7 +320,6 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
   widget_class->realize = gtk_spin_button_realize;
   widget_class->measure = gtk_spin_button_measure;
   widget_class->size_allocate = gtk_spin_button_size_allocate;
-  widget_class->motion_notify_event = gtk_spin_button_motion_notify;
   widget_class->key_release_event = gtk_spin_button_key_release;
   widget_class->focus_out_event = gtk_spin_button_focus_out;
   widget_class->grab_notify = gtk_spin_button_grab_notify;
@@ -1129,19 +1126,6 @@ gtk_spin_button_state_flags_changed (GtkWidget     *widget,
   GTK_WIDGET_CLASS (gtk_spin_button_parent_class)->state_flags_changed (widget, previous_state);
 }
 
-static gint
-gtk_spin_button_motion_notify (GtkWidget      *widget,
-                               GdkEventMotion *event)
-{
-  GtkSpinButton *spin = GTK_SPIN_BUTTON (widget);
-  GtkSpinButtonPrivate *priv = spin->priv;
-
-  if (gtk_gesture_is_recognized (priv->swipe_gesture))
-    return TRUE;
-
-  return GTK_WIDGET_CLASS (gtk_spin_button_parent_class)->motion_notify_event (widget, event);
-}
-
 static gint
 gtk_spin_button_timer (GtkSpinButton *spin_button)
 {